3D Graphics Programming with QuickDraw 3D 1.5.4
Previous | QD3D Book | Overview | Chapter Contents | Next |
You can add new application-defined attribute and element types by using Q3XAttributeClass_Register and Q3XElementClass_Register . These functions let an application add a new attribute or element type by registering its methods. A unique object type of TQ3AttributeType or TQ3ElementType is returned, which you can use to set and get the custom attribute or element:
typedef TQ3ElementType TQ3AttributeType;
You can use the Q3XAttributeClass_Register function to add a new attribute type to QuickDraw 3D.
TQ3XObjectClass Q3XAttributeClass_Register(
TQ3AttributeType *attributeType,
const char *name,
unsigned long sizeOfElement,
TQ3XMetaHandler metaHandler);
You can use the Q3XElementClass_Register function to add a new element type to QuickDraw 3D.
TQ3XObjectClass Q3XElementClass_Register(
TQ3ElementType *elementType,
const char *name,
unsigned long sizeOfElement,
TQ3XMetaHandler metaHandler);
Previous | QD3D Book | Overview | Chapter Contents | Next |